<?php

class Core_Widget_Admincp_Breadcrum extends Nuo_Widget
{
	function execute()
	{
		
		$breadcrum = Nuo::getVar('breadcrum');

		if (!$breadcrum)
		{
			return;
		}

		$links = isset($breadcrum['links']) ? $breadcrum['links'] : array();

		$title = isset($breadcrum['title']) ? $breadcrum['title'] : '';

		$toolbar = isset($breadcrum['toolbar']) ? $breadcrum['toolbar'] : '';

		$max = count($links);
		
		return $this->render(array(
			'links' => $links,
			'max' => $max,
			'title' => $title,
			'toolbar' => $toolbar,
		));
	}

}
